from rest_framework.exceptions import APIException


class UserBanned(APIException):
    status_code = 499
    default_detail = 'User was banned.'
    default_code = 'user_banned'


class UserAlreadyExists(APIException):
    status_code = 450
    default_detail = 'User already exists'
    default_code = 'user_already_exists'
